package com.sqy.exception;

public enum ImoocMallExceptionEnum {

    NEED_USER_MAME(10001,"用户名不能为空"),
    NEED_PASSWORD(10002,"密码不能为空"),
    PASSWORD_TOO_SHORT(10003,"密码长度不能小于8位"),
    REGISTER_FAIL(10004,"注册失败"),
    NAME_EXISTED(10005,"不允许重名"),
    WRONG_PASSWORD(10006,"用户名和密码错误"),
    UPDATE_USER(10007,"修改失败"),
    PARA_NOT_NULL(10008,"参数不能为空"),
    SYSTEM_ERROR(20000,"系统异常"),
    REQUEST_PARAE(10009,"参数错误"),
    ADD_FAIL(10009,"添加失败"),
    DETER_FAIL(10010,"删除失败"),
    DELETE_FAILED(10011,"文件夹创建失败"),
    UPLOAD_FAILED(10012,"图片上传失败");
    Integer code;
    String msg;

    ImoocMallExceptionEnum(Integer code, String msg){
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
